/* 书写自己的首页样式 */

i {
  font-style: normal;
}

body {
  background-color: #f3f5f7;
  width: 1400px;
  height: 30000px;
}

/* 定义一个版心 */
.wrapper {
  width: 1200px;
  margin: 0 auto;
}

/* 侧边栏开始 */
.sidebar {
  width: 80px;
  height: 200px;
  background-color: pink;
  position: fixed;
  left: 50%;
  top: 50%;
  margin-left: 620px;
}
/* 侧边栏结束 */
/* header盒子制作开始啦 */
.header {
  width: 100%;
  height: 100px;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
}

.header .wrapper {
  padding-top: 29px;
  display: flex;
}

/* logo */
.header .logo {
  width: 195px;
  height: 41px;
  background-color: purple;
}

.logo a {
  height: 41px;
  display: block;
  background-image: url(../images/logo.png);
  /* 隐藏文字 */
  font-size: 0;
}

.nav {
  margin-left: 100px;
}

.nav ul {
  display: flex;
}

.nav li {
  margin-left: 20px;
}

.nav li a {
  font-size: 19px;
  padding: 8px;
}

.nav li a:hover {
  /* border-bottom: 2px solid black; */
  border: 2px solid #00a4ff;
}

.search {
  width: 412px;
  height: 40px;
  background-color: #f3f5f7;
  border-radius: 20px;
  margin-left: 80px;
}

.search input {
  width: 412px;
  height: 40px;
  /* 通过背景色透明，实现圆角 */
  background-color: transparent;
  /* 去年边框 */
  border: 0;
  /* 去年点击边框 */
  outline: 0;
  padding-left: 20px;
  padding-right: 30px;
}

.user {
  margin-left: 32px;
}

.user img {
  /* 图片与文字居中对齐 */
  vertical-align: middle;
}

.user span {
  color: #666;
  margin-left: 8px;
}

/* header盒子制作结束啦 */
/* banner start  */
.banner {
  margin-top: 100px;
  height: 420px;
  background-color: #0092cb;
}

.banner .wrapper {
  height: 420px;
  background-image: url(../uploads/banner.png);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner .left {
  height: 420px;
  width: 191px;
  /* 黑色半透明 */
  background-color: rgba(0, 0, 0, 0.42);
  padding-top: 3px;
}

.banner .left li a {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  line-height: 46px;
  color: #fff;
  padding: 0 20px;
}

.banner .left li a:hover {
  background-color: rgba(0, 0, 0, 0.3);
  color: #00a4ff;
}

.banner .right {
  width: 218px;
  height: 305px;
  background-color: #209dd5;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.banner .right h2 {
  justify-content: 32px;
  background-color: yellowgreen;
  margin: 18px 14px 0;
  font-size: 15px;
}

.banner .right .myclasses {
  height: 257px;
  border-radius: 15px;
  background-color: #fff;
  padding: 14px;
}

.banner .right .myclass {
  display: block;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 12px;
}

.banner .right dt {
  font-size: 14px;
  font-weight: 700px;
}

.banner .right dd {
  font-size: 12px;
  margin: 8px 0;
  color: #7d7d7d;
}

.banner .right dd span {
  color: #00a4ff;
}

.banner .right .to-all-classes {
  display: block;
  height: 32px;
  background-color: #00a4ff;
  border-radius: 16px;
  line-height: 32px;
  font-size: 14px;
  color: #fff;
  text-align: center;
}

/* banner end */
/* 精品推荐开始 */
.recommend {
  height: 60px;
  background-color: #fff;
  margin-top: 12px;
  box-shadow: 0px 1px 2px 0px rgba(211, 211, 211 0.8);
  padding: 0 20px;
  line-height: 60px;
  display: flex;
  justify-content: space-between;
}

.recommend h3 {
  font-size: 18px;
  color: #00a4ff;
  font-weight: 400;
}

.recommend ul {
  display: flex;
  /* 圣杯模型:左右两个都有宽度（由文字内容决定），我ul独占一份 */
  flex: 1;
}

.recommend li a {
  padding: 0 20px;
  /* 只能给行内元素a设置边框，因为flex布局中块级元素配合line-height后行高与父级相同;行内元素默认没高度 */
  border-right: 1px solid #e0e0e0;
}

.recommend li a:hover {
  color: #00a4ff;
}

.recommend li:last-child a {
  border-right: 0px solid #f00;
}

.recommend .mod {
  color: #00a4ff;
}

/* 精品推荐结束 */
/* 课程版块开始 */
.hd {
  height: 30px;
  background-color: pink;
  margin: 30px 0 15px;
  line-height: 30px;
  display: flex;
  justify-content: space-between;
}

.hd h3 {
  font-size: 21px;
  font-weight: 400;
}

.hd .all {
  font-size: 16px;
  color: #999;
}

.hd ul {
  display: flex;
}

.hd li {
  font-size: 16px;
  margin: 0 30px;
}

.hd li:nth-child(1) a {
  color: #00a4ff;
}

.bd li {
  width: 228px;
  height: 271px;
  background-color: #fff;
  margin-bottom: 14px;
}

.bd li a {
  display: block;
  height: 100%;
}

.bd a h4 {
  height: 55px;
  margin: 20px 20px 0;
  font-size: 14px;
  font-weight: 400px;
}

.bd a p {
  margin-left: 20px;
}

.bd a p span {
  color: #fa6400;
}

.bd ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* 课程版块结束 */

/* 前端开发工程师开始 */
.bd .left {
  width: 228px;
  height: 386px;
}

.bd .right {
  width: 957px;
  height: 386px;
}

.domain-class .bd {
  display: flex;
  justify-content: space-between;
}

.domain-class .bd .right .top {
  height: 100px;
  margin-bottom: 15px;
}

/* 前端开发工程师结束 */
/* footer开始 */
.footer {
  height: 273px;
  height: 1273px;
  /* background-color: #fff; */
  background-color: red;
  margin-top: 45px;
  padding-top: 60px;
}

/* footer结束 */
